/**
* gtk_style_context_get_valist:
* @context: a #GtkStyleContext
+ * @first_property_name: Name of the first property
* @args: va_list of property name/return location pairs, followed by %NULL
*
* Retrieves several style property values from @context for a given state.
*/
void
gtk_style_context_get_valist (GtkStyleContext *context,
+ const char *first_property_name,
va_list args)
{
const gchar *property_name;
g_return_if_fail (GTK_IS_STYLE_CONTEXT (context));
+ g_return_if_fail (first_property_name != NULL);
- property_name = va_arg (args, const gchar *);
+ property_name = first_property_name;
while (property_name)
{
/**
* gtk_style_context_get:
* @context: a #GtkStyleContext
+ * @first_property_name: Name of the first property
* @...: property name /return value pairs, followed by %NULL
*
* Retrieves several style property values from @context for a
*/
void
gtk_style_context_get (GtkStyleContext *context,
+ const char *first_property_name,
...)
{
va_list args;
g_return_if_fail (GTK_IS_STYLE_CONTEXT (context));
+ g_return_if_fail (first_property_name != NULL);
- va_start (args, context);
- gtk_style_context_get_valist (context, args);
+ va_start (args, first_property_name);
+ gtk_style_context_get_valist (context, first_property_name, args);
va_end (args);
}
GValue *value);
GDK_AVAILABLE_IN_ALL
void gtk_style_context_get_valist (GtkStyleContext *context,
+ const char *first_property_name,
va_list args);
GDK_AVAILABLE_IN_ALL
void gtk_style_context_get (GtkStyleContext *context,
+ const char *first_property_name,
...) G_GNUC_NULL_TERMINATED;
GDK_AVAILABLE_IN_ALL